import axiosRequest from "@/api/axiosRequest.ts";

const BaseUrl = '/user'

/* 获取用户详情 */
const getUserDetail = (id:number) => axiosRequest({
  url:BaseUrl + '/detail' ,
  method: 'GET',
  params: {
    id: id
  }
})

export const userApi = {
  /* 获取当前用户的登录信息 */
  getUserInfo : () => axiosRequest.get(BaseUrl + '/info'),
  getUserDetail
}
